package cars;

public class Vehicle {
    private String type;
    //类型
    private String brand;
    //品牌
    private String VehicleID;
    //车牌号
    private double perRent;

    //日租金
    public Vehicle() {
    }
    //空参构造

    public Vehicle(String type, String brand, String vehicleID, double perRent) {
        this.type = type;
        this.brand = brand;
        VehicleID = vehicleID;
        this.perRent = perRent;
    }

    //有参构造
    public String getType() {
        return type;
    }
    //返回汽车类型

    public void setType(String type) {
        this.type = type;
    }
    //设置汽车种类
    public String getBrand() {
        return brand;
    }
    //返回品牌

    public void setBrand(String brand) {
        this.brand = brand;
    }
    //设置品牌

    public String getVehicleID() {
        return VehicleID;
    }
    //返回车牌号

    public void setVehicleID(String vehicleID) {
        VehicleID = vehicleID;
    }
    //设置车牌号

    public double getPerRent() {
        return perRent;
    }
    //返回日租金

    public void setPerRent(double perRent) {
        this.perRent = perRent;
    }
    //设置日租金

    public double calRent(int day) {
        return 1.0 * perRent * day;
    }
    //计算车的租金

    public String toString() {
        return null;
    }
    //返回汽车
}
